﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Willow.MVC.Search
{
    public enum QueryMethod
    {
        /// <summary>
        /// 等于
        /// </summary>
        [Description("等于")]
        Equal = 0,

        /// <summary>
        /// 小于
        /// </summary>
        [Description("小于")]
        LessThan = 1,

        /// <summary>
        /// 大于
        /// </summary>
        [Description("大于")]
        GreaterThan = 2,

        /// <summary>
        /// 小于等于
        /// </summary>
        [Description("小于等于")]
        LessThanOrEqual = 3,

        /// <summary>
        /// 大于等于
        /// </summary>
        // [GlobalCode(">=", OnlyAttribute = true)]
        [Description("大于等于")]
        GreaterThanOrEqual = 4,


        /// <summary>
        /// 不等于
        /// </summary>
        [Description("不等于")]
        NotEqual = 5,


        /// <summary>
        /// 开头等于
        /// </summary>
        [Description("开头等于")]
        StartsWith = 6,

        /// <summary>
        /// 结尾等于
        /// </summary>
        [Description("结尾等于")]
        EndsWith = 7,

        /// <summary>
        /// 处理Like的问题
        /// </summary>
        [Description("包含")]
        Contains = 8,

        /// <summary>
        /// 处理In的问题
        /// </summary>
        [Description("在此范围内")]
        StdIn = 9

    }
}
